<template>
  <div id="breadcrumb">
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <span class="mark"></span>
      <el-breadcrumb-item>
        {{ content }}
        <slot name="selfAction"></slot>
      </el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script setup lang="ts">
import { defineProps } from 'vue';

defineProps({
  content: String || Number || Object
});
</script>

<style lang="scss" scoped>
#breadcrumb {
  .el-breadcrumb {
    padding: 10px 15px;
    border-left: $border-3;
    box-shadow: $bottom-shadow;
    background-color: $bg-white;
    line-height: 20px;
    font-size: $font-size;

    .mark {
      width: 5px;
      height: 15px;
      background-color: $info-color;
      display: inline-block;
      margin-right: 10px;
      margin-top: 3px;
      float: left;
    }
  }
}
</style>
